package com.warm.mini.wework.service.invoke.handler;

import com.warm.mini.wework.config.WeworkConfigProperties;
import com.warm.mini.wework.config.TanzsayConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description 通用消息处理
 * @Author warmchuang
 * @Date 2022/2/9 16:22
 */
@Slf4j
@Service
public class TanzsayMsgHandler extends AbstractMsgHandler{

    @Resource
    private BaseMsgHandler handler;

    @Override
    public String resource() {
        return TanzsayConfig.RESOURCE;
    }

    @Override
    public void changeContactHandle(String xmlMsg, WeworkConfigProperties config) {
        handler.changeContactHandle(xmlMsg, config);
    }

    @Override
    public void changeExternalContactHandle(String xmlMsg, WeworkConfigProperties config) {
        handler.changeExternalContactHandle(xmlMsg, config);
    }

}
